<!-- BEGIN CONTEINER -->
<div id="content">
    <div id="title">
        <div class="left"><fmt:message key='commandesM'/> <a HREF="<c:url value='/userDetail?${utilisateur.idutilisateur}'/>">${utilisateur.login}</a></div>
        <div class="sp"></div>
    </div>
    <table cellpadding="3">
        <tbody align="left">
            <tr>
                <th><fmt:message key='date'/></th>
                <th><fmt:message key='total'/></th>
                <th><fmt:message key='state'/></th>

            </tr>
            <c:forEach var="commande" items="${commandes}">
                <tr>
                    <td>${commande.date.date}/${commande.date.month}/${commande.date.year+1900}</td>
                    <td>${commande.totalCommande}</td>
            <form name="changeState" id="changeState" action="<c:url value='/modifierEtat?${commande.idcommande}'/>" method="post">
                <td><select name="etat">
                        <c:forEach var="etat" items="${etats}">
                            <option value="${etat.idetatCommande}"
                                    <c:if test="${etat.idetatCommande eq commande.etatcommande}">
                                        selected
                                    </c:if>
                                    >${etat.description}</option>
                        </c:forEach>
                    </select></td>
                <td><input id="inputsubmit1" type="submit" name="inputsubmit1" value="<fmt:message key='modify'/>" /></td>
                <input type="hidden" name="idcommande" value="${commande.idcommande}"/>
            </form>
            <td><a HREF="<c:url value='/commandDetail?${commande.idcommande}'/>"><img SRC="css/images/bSearch.png" width="22" height="22" border="0" alt="<fmt:message key='detail'/>" title="<fmt:message key='detail'/>"/></a></td>
            </tr>
        </c:forEach>         
        </tbody>
    </table>
    <!--input type="button" value="<fmt:message key='commandeDetails'/>" onclick="location.href='<c:url value='/commandDetail?${commande.idcommande}'/>'"-->
    <br/>
</div>
<!-- END CONTENT -->
<div class="sp"></div>
</div>
<div class="sp"></div>
</div>